package cqie.cn.frame.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @author 王林
 * @version 1.0
 * @date 2021-09-06 周一
 * @time 10:45
 * @description
 */
@Data
@ToString
@ApiModel(value = "返回信息类", description = "基础返回类")
public class RetJson<T> {

    @ApiModelProperty(value = "状态码")
    private Integer code;

    @ApiModelProperty(value = "返回信息")
    private String msg;

    @ApiModelProperty(value = "返回数据")
    private T data;

    /**
     * 总记录条数
     */
    @ApiModelProperty(value = "总记录条数")
    private Long count;
}